package com.cskaoyan.order.remote;


import com.cskaoyan.user.MemberDTO;

import com.cskaoyan.user.UserVerifyDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author silic xia
 * @since 2022/12/03 18:09
 */
@FeignClient("duolai-user")
public interface UserFeignClient {

    @GetMapping("/feign/order/checkMember")
    MemberDTO selectMemberByPrimaryKey(@RequestParam(name = "userId") Long userId);

    @GetMapping("/feign/order/checkUserVerify")
    UserVerifyDTO selectUserVerifyByPrimaryKey(@RequestParam(name = "username") String username);

}

